﻿'use strict'

$(function () {

    var $container = $('.container');
    var $item = $('<p>').addClass('item');

    $("#add").click(function () {
        var text = $("#comment").val();
        var $newItem = $item.clone();
        $newItem.html(text);
        $newItem.hide();
        $container.append($newItem);
        $newItem.show(500);
    });

        
    var url = "http://api.openweathermap.org/data/2.5/weather?q=Yerevan&appid=bd82977b86bf27fb59a04b61b657fb6f";

    $.getJSON(url, function (data) {
        console.log(data);
    });
});